param([switch]$on, [switch]$off)

if ($on) {
  git config --global http.proxy 127.0.0.1:10809
  git config --global https.proxy 127.0.0.1:10809
  Write-Host "git proxy on!"
}
elseif ($off) {
  git config --global --unset http.proxy
  git config --global --unset https.proxy
  Write-Host "git proxy off!"
}
else {
  Write-Host "usage:"
  Write-Host "  git_proxy -on"
  Write-Host "  git_proxy -off"
}